package com.kws.system.domain.contractManagementDao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import org.apache.poi.ss.formula.functions.T;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <b>TbContract</b>
 *
 * @description: TbContract <br>
 * @date: 2024/11/18 14:38 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */
public class TbContract {
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "合同编号")
    private String contractNo;

    @ApiModelProperty(value = "合同名称")
    private String contractName;

    @ApiModelProperty(value = "合同类型")
    private Integer contractType;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "所属项目编号")
    private String itemNo;

    @ApiModelProperty(value = "签署顺序")
    private String signSequence;

    @ApiModelProperty(value = "状态0草稿 1待审批 2待签署 3已签署 4执行中 5已终止 6已完成")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "合同模板id")
    private Long contractTemplateId;

    @ApiModelProperty(value = "合同开始时间")
    private Date startTime;

    @ApiModelProperty(value = "合同结束时间")
    private Date endTime;

    @ApiModelProperty(value = "甲方")
    private String firstParty;

    @ApiModelProperty(value = "乙方")
    private String secondParty;

    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractMoney;

    @ApiModelProperty(value = "补充协议编号")
    private String replenishNo;

    @ApiModelProperty(value = "签署")
    private Long signatureId;

    @ApiModelProperty(value = "商家ID")
    private Long merchantId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "可用状态：0-不可用，1-可用")
    private String enable;

    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public Integer getContractType() {
        return contractType;
    }

    public void setContractType(Integer contractType) {
        this.contractType = contractType;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    public String getSignSequence() {
        return signSequence;
    }

    public void setSignSequence(String signSequence) {
        this.signSequence = signSequence;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getContractTemplateId() {
        return contractTemplateId;
    }

    public void setContractTemplateId(Long contractTemplateId) {
        this.contractTemplateId = contractTemplateId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getFirstParty() {
        return firstParty;
    }

    public void setFirstParty(String firstParty) {
        this.firstParty = firstParty;
    }

    public String getSecondParty() {
        return secondParty;
    }

    public void setSecondParty(String secondParty) {
        this.secondParty = secondParty;
    }

    public BigDecimal getContractMoney() {
        return contractMoney;
    }

    public void setContractMoney(BigDecimal contractMoney) {
        this.contractMoney = contractMoney;
    }

    public String getReplenishNo() {
        return replenishNo;
    }

    public void setReplenishNo(String replenishNo) {
        this.replenishNo = replenishNo;
    }

    public Long getSignatureId() {
        return signatureId;
    }

    public void setSignatureId(Long signatureId) {
        this.signatureId = signatureId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", contractNo=").append(contractNo);
        sb.append(", contractName").append(contractName);
        sb.append(", contractType=").append(contractType);
        sb.append(", orderNo").append(orderNo);
        sb.append(", itemNo=").append(itemNo);
        sb.append(", signSequence").append(signSequence);
        sb.append(", status=").append(status);
        sb.append(", contractTemplateId").append(contractTemplateId);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime").append(endTime);
        sb.append(", firstParty=").append(firstParty);
        sb.append(", secondParty").append(secondParty);
        sb.append(", contractMoney=").append(contractMoney);
        sb.append(", replenishNo").append(replenishNo);
        sb.append(", signatureId=").append(signatureId);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", userId=").append(userId);
        sb.append(", enable=").append(enable);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", fileUrl=").append(fileUrl);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}

